package HomeWork.ooday02;

public class Teacher extends Person{
    double salary;
    Teacher(String name,String address, int age, double salary){
        super(name,address,age);
        this.salary=salary;
    }
    void teach(){
        System.out.println(name+"正在上课...");
    }
    void sayHi(){
        System.out.println("我的名字是"+name+"，我今年"+age+"岁了，我的工资是："+salary);
    }
}
